package cate.game.pvp;

import java.util.function.Consumer;

public class PvpSeasonPeriod extends AbstractPvpSeasonPeriod<PvpSeasonPeriod>{
    private Consumer<PvpSeasonPeriod> handler;

    public PvpSeasonPeriod(){

    }

    public PvpSeasonPeriod(long startTime, long endTime, int period, String nameDesc){
        this(startTime, endTime, period, nameDesc, null);
    }

    @Override
    protected Consumer<PvpSeasonPeriod> getHandler() {
        return handler;
    }

    public PvpSeasonPeriod(long startTime, long endTime, int period, String nameDesc, Consumer<PvpSeasonPeriod> handler){
        super(startTime, endTime, period, nameDesc);
        this.handler = handler;
    }
}
